extends "../cTDR_3_1/cTDR_3_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()

	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5
	addCdSkill("jjs",5)
	addSkillTxt("锁定目标：锁定当前目标，增加对其伤害33%，持续3秒[cd:5秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "jjs" && aiCha != null:
		cst("锁定目标","000000",position)
		aiCha.addBuff(BF1.new(1,self))
		
class BF1:
	extends Buff
	var cha
	func _init(lv,cha):
		attInit()
		life = lv * 3
		self.cha = cha
	func _connect():
		._connect()
		masCha.connect("onHurt",self,"run")

	func run(atkinfo):
		if atkinfo.atkCha == cha && atkinfo.atkType != Chara.AtkType.EFF:
			atkinfo.hurtVal *= 1.33
		return